import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
import MescrollBody from '@/uni_modules/mescroll-uni/components/mescroll-body/mescroll-body.vue'
import MescrollMixin from  '@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js'
import MescrollMoreMixin from  '@/uni_modules/mescroll-uni/components/mescroll-uni/mixins/mescroll-more.js'
import mixinNav from '@/common/mixin/mixin.js'
import * as utils from '@/common/js/util.js'
export function createApp() {
  const app = createSSRApp(App)
  app.mixin(mixinNav)
  app.mixin(MescrollMixin)
  app.mixin(MescrollMoreMixin)
    app.config.globalProperties.$utils = utils;
  return {
    app
  }
}
// #endif